package com.yunpeng.aidevice.common.vo;

import com.yunpeng.aidevice.common.vo.user.UserRoleVO;

import java.io.Serializable;
import java.util.List;

/**
 * RoleDetailVO 角色详情视图
 *
 * @author : Moore(hemw)
 * @date : 2020-04-15
 */
public class RoleDetailVO implements Serializable {

    /**
     * 角色名称
     */
    private String name;

    /**
     * 角色代码
     */
    private String code;

    /**
     * 可操作的权限
     */
    private List<RolePermissionVO> operatePermissions;

    /**
     * 拥有此角色的用户
     */
    private List<UserRoleVO> users;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public List<RolePermissionVO> getOperatePermissions() {
        return operatePermissions;
    }

    public void setOperatePermissions(List<RolePermissionVO> operatePermissions) {
        this.operatePermissions = operatePermissions;
    }

    public List<UserRoleVO> getUsers() {
        return users;
    }

    public void setUsers(List<UserRoleVO> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "RoleDetailVO{" +
                "name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", operatePermissions=" + operatePermissions +
                ", users=" + users +
                '}';
    }
}
